<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template("member","header"); ?>
<div id="main">
<?php include template("message","left"); ?>
<div id="right">
<p id="position"><strong>当前位置：</strong><a href="<?php echo $M['url'];?><?php if($out) { ?>outbox.php<?php } else { ?>inbox.php<?php } ?>"><?php if($out) { ?>发件箱<?php } else { ?>收件箱<?php } ?></a>阅读</p>
    	 <table width="98%" cellpadding="0" cellspacing="1" class="message">
         <caption>
      		<?php echo $subject;?>
      	 </caption>
        <tr>
<td width="40" class="align_center"><img src="<?php echo $avatar;?>" width="40" height="40" alt="主题" /></td>
        	<td width="100">
            	<a href="<?php echo space_url($send_from_id);?>" target="_blank"><strong><?php echo $msgfromname;?></strong></a><br /><?php echo $date;?>
            </td>
        	<td width="*" class="align_left">
            	<?php echo $content;?>
            </td>
        </tr>
        <?php if(is_array($reply_message)) foreach($reply_message AS $reply) { ?>
        <tr>
<td width="40" class="align_center"><img src="<?php echo $reply['avatar'];?>" width="40" height="40" alt="回复" /></td>
        	<td>
        		<a href="<?php echo space_url($reply[send_from_id]);?>" target="_blank"><strong><?php echo $reply['msgfromname'];?></strong></a><br /><?php echo $reply['date'];?>
        	</td>
            <td class="align_left">
            	<?php echo $reply['content'];?>
            </td>
        </tr>
        <?php } ?>
     	</table>
        <form action="<?php echo $M['url'];?>read.php" method="post" name="myform" >
    	 <table width="98%" cellpadding="0" cellspacing="0" class="table_form">
         <caption>回复短消息</caption>
        	<tr>
                <td width="*"><textarea name="content" id="content" tabindex="100" cols="60"></textarea><?=form::editor('content', 'introduce', '100%', 200)?></td>
            </tr>
<tr>
    <td>
<input type="submit" name="dosubmit" id="button" value=" 确定 " />
        <input type="hidden" name="replyid" value="<?php echo $messageid;?>" />
        <input type="hidden" name="msgtoid" value="<?php echo $msgtoid;?>" />
        <input type="hidden" name="forward" value="<?php echo $M['url'];?>inbox.php" />
</td>
</tr>
        </table>        
      </form>
</div>
   </div>
 <div class="clear"></div>
<?php include template("member","footer"); ?>